import dotenv from 'dotenv';
import { fileURLToPath } from 'url';
import path from 'path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

// 加载.env文件
dotenv.config();

console.log('JWT_SECRET from process.env:', process.env.JWT_SECRET);
console.log('All env vars:', Object.keys(process.env).filter(k => k.includes('JWT')));